package com.qfjy.service.impl.example1;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @ClassName EmailServiceImpl
 * @Description TODO
 * @Author guoweixin
 * @Date 2023/4/13
 * @Version 1.0
 */
@Service
@Slf4j
public class EmailServiceImpl {

    @Value("${server.port}")
    private int port;

    /**
     * RabbitListener监听MQ 队列的名称
     */
    @RabbitListener(queues = {"emailQueue"})
    public void sendEmail(String cardId){


        log.info("发送邮件业务逻辑 邮件发送成功---》{}",cardId);

    }
}
